package com.baixun.gasentity.dto;


import com.baixun.gasentity.validate.Logincharge;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class LoginDto implements Serializable {

    /**
     * 账户名
     */
    @ApiModelProperty(value = "账户名")
    @NotBlank(message = "账户名不能为空",groups = {Logincharge.class})
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码为空",groups = {Logincharge.class})
    private String passWord;



    //验证码，来自获取验证码接口的返回，获取验证码接口返回的是图片，需要从图片中获取到字符后填入
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空",groups = {Logincharge.class})
    private String verificationCode;



   // 验证码 token，来自获取验证码接口的返回
    @ApiModelProperty(value = "验证码token")
    @NotBlank(message = "验证码token不能为空",groups = {Logincharge.class})
    private String verificationCodeToken;




}
